package implementation.menu {
import flash.display.DisplayObjectContainer;

import palf.Gallery;
import palf.menu.MenuAbstractFactory;
import palf.menu.MenuBuilder;

public class MenuEncapsulation {

	public function MenuEncapsulation() {

	}

	public function init(menu_container : DisplayObjectContainer, gallery : Gallery) : void {
		var factory : MenuAbstractFactory = new MenuAbstractFactoryImplementation(menu_container);
		var main_menu : MenuImplementation = new MenuImplementation(factory);
		var menu_content : MenuContent = new MenuContent(gallery);
		var builder : MenuBuilder = new MenuBuilderImplementation();
		builder.setContent(main_menu, menu_content);
	}
}
}
